package cn.progen.model;

import java.io.Serializable;

/**
 * Created by wangYuDong on 2017/6/6.
 */
public class Relation implements Serializable {
    private String sourceTable;
    private String targerTable;
    private String sourceColumn;
    private String targerColumn;

    private String relationShip;
    private String reTable;
    private String reTargerColumn;
    private String reSourceColumn;


    public String getReTable() {
        return reTable;
    }

    public void setReTable(String reTable) {
        this.reTable = reTable;
    }

    public String getReTargerColumn() {
        return reTargerColumn;
    }

    public void setReTargerColumn(String reTargerColumn) {
        this.reTargerColumn = reTargerColumn;
    }

    public String getReSourceColumn() {
        return reSourceColumn;
    }

    public void setReSourceColumn(String reSourceColumn) {
        this.reSourceColumn = reSourceColumn;
    }

    public String getSourceTable() {
        return sourceTable;
    }

    public void setSourceTable(String sourceTable) {
        this.sourceTable = sourceTable;
    }

    public String getTargerTable() {
        return targerTable;
    }

    public void setTargerTable(String targerTable) {
        this.targerTable = targerTable;
    }

    public String getSourceColumn() {
        return sourceColumn;
    }

    public void setSourceColumn(String sourceColumn) {
        this.sourceColumn = sourceColumn;
    }

    public String getTargerColumn() {
        return targerColumn;
    }

    public void setTargerColumn(String targerColumn) {
        this.targerColumn = targerColumn;
    }

    public String getRelationShip() {
        return relationShip;
    }

    public void setRelationShip(String relationShip) {
        this.relationShip = relationShip;
    }

    @Override
    public String toString() {
        return "Relation{" +
                "sourceTable='" + sourceTable + '\'' +
                ", targerTable='" + targerTable + '\'' +
                ", sourceColumn='" + sourceColumn + '\'' +
                ", targerColumn='" + targerColumn + '\'' +
                ", relationShip='" + relationShip + '\'' +
                ", reTable='" + reTable + '\'' +
                ", reTargerColumn='" + reTargerColumn + '\'' +
                ", reSourceColumn='" + reSourceColumn + '\'' +
                '}';
    }
}
